<?php
/***************************************************************************
 *   copyright : (C) 2009 Udrea Cristian
 *   site : http://code.google.com/p/testauction-php
 ***************************************************************************/

/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as 
 *   published by the Free Software Foundation; either version 2 of the
 *   License, or (at your option) any later version. Although none of the
 *   code may be sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if(!$session->logged_in) {
	header('Location: main.php');
}

$content = "Alege pachetul de credite pe care doresti sa-l achizitionezi. Pe masura ce pachetul este mai mare pretul fiecarui credit scade.<br /><br />
	<h3>Cum pot cumpara credite daca nu posed card bancar?</h3>
	Puteti solicita eliberarea unui card de debit pentru plati 
	pe internet la banca dumneavostra preferata, card pe care 
	il puteti incarca cu orice suma de bani doriti. In acest fel 
	veti avea un control exact asupra sumelor disponibile si 
	platilor efectuate.<br /><br />";
	
if(!$session->userinfo['data_filled']) {
	$content .= "<b style=\"color: red;\">Completeaza toate datele in \"Datele Mele\"!</b>";
	$template->setCurrentBlock("table_page");
	$template->setVariable("TABLEPAGECONTENT", $content);
	$template->parseCurrentBlock();
	
	include("pages/useredit.php");
	//header('Location: main.php?page=23');
}

$template->setCurrentBlock("table_page");
$template->setVariable("TABLEPAGECONTENT", $content);
$template->parseCurrentBlock();
?>
